/*
 * lcd_169_cst816s.h
 *
 *  Created on: Mar 25, 2025
 *      Author: QkLia
 */

#ifndef LCD_169_CST816S_INC_LCD_169_CST816S_H_
#define LCD_169_CST816S_INC_LCD_169_CST816S_H_

#include "main.h"

#define TP_RES_START HAL_GPIO_WritePin(TP_RST_GPIO_Port, TP_RST_Pin, GPIO_PIN_RESET);
#define TP_RES_STOP HAL_GPIO_WritePin(TP_RST_GPIO_Port, TP_RST_Pin, GPIO_PIN_SET);

void tp_init();

void tp_write_byte(uint16_t reg, uint8_t dat);

void tp_read_nbyte(uint16_t reg, uint8_t* dat, uint16_t size);

#endif /* LCD_169_CST816S_INC_LCD_169_CST816S_H_ */
